/**
 * Created by chenghuan on 16/4/25.
 */

var ngCordovaMocksHodit = angular.module('hyt.ngCordovaMocksHdoit', []);

ngCordovaMocksHodit.factory('$cordovaHdoitBle', function () {

    return {
        init:function(successCallback,errorCallback){
            hdoitble.init(successCallback, errorCallback);
        },
        scan:function(successCallback,errorCallback){
            hdoitble.scan(successCallback, errorCallback);
        },
        close:function(successCallback,errorCallback){
            hdoitble.close(successCallback, errorCallback);
        },
        isEnabled:function(successCallback,errorCallback){
            hdoitble.isEnabled(successCallback, errorCallback);
        },
        reset:function (successCallback,errorCallback){
            hdoitble.reset(successCallback, errorCallback);
        },
        doPrint:function (successCallback,errorCallback){
            hdoitble.doPrint(successCallback, errorCallback);
        },
        bluetoothName:function(successCallback,errorCallback){
            hdoitble.bluetoothName(successCallback, errorCallback);
        },
        printTextZhike:function(printText,options,successCallback,errorCallback){
            hdoitble.printTextZhike(successCallback, errorCallback,printText,options);
        },
        printBarcodeZhike:function(printText,options,successCallback,errorCallback){
            hdoitble.printBarcodeZhike(successCallback, errorCallback,printText,options);
        },
        printQRcodeZhike:function(printText,options,successCallback,errorCallback){
            hdoitble.printQRcodeZhike(successCallback, errorCallback,printText,options);
        },
        startPageZhike:function(options,successCallback,errorCallback){
            hdoitble.startPageZhike(successCallback, errorCallback,options);
        },
        darwRectZhike:function(options,successCallback,errorCallback){
            hdoitble.darwRectZhike(successCallback, errorCallback,options);
        },
        darwLineZhike:function(options,successCallback,errorCallback){
            hdoitble.darwLineZhike(successCallback, errorCallback,options);
        },
        gotoMarklabel:function(options,successCallback,errorCallback){
            hdoitble.gotoMarklabel(successCallback, errorCallback,options);
        },
        multilineText:function(printText,options,successCallback,errorCallback){
            hdoitble.multilineText(successCallback, errorCallback,printText,options);
        }
    }
});